1 Summary: Older implementation of C++ interface to PostgreSQL
2 Summary(pl.UTF-8): Starsza implementacja interfejsu C++ do PostgreSQL
8 Source0: https://ftp.postgresql.org/pub/projects/gborg/libpqpp/stable/%{name}-%{version}.tar.gz
9 # Source0-md5: da71cb79ef45cef55f4bc97a33a0857d
10 Patch0: %{name}-make.patch
11 Patch1: %{name}-libdir.patch
13 URL: https://www.postgresql.org/docs/7.0/libpqplusplus.htm
14 BuildRequires: libstdc++-devel
15 BuildRequires: postgresql-devel >= 7.3
16 Provides: postgresql-c++
17 Obsoletes: postgresql-c++
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This package includes library for C++ interface to PostgreSQL. It's
22 an older implementation, included with PostgreSQL up to 7.2.x.
24 %description -l pl.UTF-8
25 Pakiet ten zawiera biblioteki dla interfejsu C++ do PostgreSQL. Jest
26 to starsza implementacja, dołączana do PostgreSQL-a aż do 7.2.x.
29 Summary: Older C++ interface to PostgreSQL - development part
30 Summary(pl.UTF-8): Starszy interfejs C++ do PostgreSQL - część programistyczna
31 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
33 Requires: libstdc++-devel
34 Requires: postgresql-devel
35 Provides: postgresql-c++-devel
36 Obsoletes: postgresql-c++-devel
39 This package includes header files for older C++ interface.
41 %description devel -l pl.UTF-8
42 Pakiet ten zawiera pliki nagłówkowe dla starszego interfejsu C++.
45 Summary: Older C++ interface to PostgreSQL - static libraries
46 Summary(pl.UTF-8): Starszy interfejs C++ do PostgreSQL - biblioteki statyczne
47 Group: Development/Libraries
48 Requires: %{name}-devel = %{version}-%{release}
49 Provides: postgresql-c++-static
50 Obsoletes: postgresql-c++-static
53 This package includes static library for older interface C++.
55 %description static -l pl.UTF-8
56 Pakiet ten zawiera biblioteki statyczne dla starszego interfejsu C++.
66 POSTGRES_HOME=%{_prefix} \
69 CXXFLAGS="%{rpmcflags} -Wall"
73 POSTGRES_HOME=%{_prefix} \
76 CXXFLAGS="%{rpmcflags} -Wall -fPIC" \
77 LDFLAGS="%{rpmldflags}"
80 rm -rf $RPM_BUILD_ROOT
81 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
84 DESTDIR=$RPM_BUILD_ROOT \
86 POSTGRES_HOME=%{_prefix}
88 ln -sf libpq++.so.4.0 $RPM_BUILD_ROOT%{_libdir}/libpq++.so.4
90 install examples/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93 rm -rf $RPM_BUILD_ROOT
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
99 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libpq++.so.*.*
102 %attr(755,root,root) %ghost %{_libdir}/libpq++.so.4
105 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/libpq++.so
108 %{_includedir}/libpq++.h
109 %{_includedir}/libpq++
110 %{_examplesdir}/%{name}-%{version}
113 %defattr(644,root,root,755)